<template>
  <view class="">
     <!-- 发布按钮 -->
    <div id="test"
      class="send-btn pointer"
      :class="{ top: !userInfo }"
      @click="toSendPage"
    >
      <image
        src="/static/images/release_1.png"
        style="width: 50px; height: 50px;"
      ></image>
    </div>
  </view>
</template>

<script>

import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["userInfo"]),
  },
  methods: {
 
    toSendPage() {
      let url = this.userInfo
        ? "/pages/index/release/submit?type=1"
        : "/user/login";

      uni.navigateTo({
        url,
      });
    },
  }
};
</script>

<style lang="scss" scoped>
</style>
